package com.zxc.gulimall.cart.feign;

import com.zxc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.math.BigDecimal;
import java.util.List;

@FeignClient(value = "product-service")
public interface ProductFeignService {

    @GetMapping("/product/skuinfo/info/{skuId}")
    public R getSkuInfo(@PathVariable("skuId") Long skuId);

    @GetMapping(value = "/product/skusaleattrvalue/stringlist/{skuId}")
    public List<String> getSkuSaleAttrValues(@PathVariable(value = "skuId") Long skuId);

    @GetMapping(value = "/product/skuinfo/price/{skuId}")
    public BigDecimal getSkuPrice(@PathVariable(value = "skuId")Long skuId);
}
